package com.cn.web.user.vo.member;

import com.alibaba.excel.annotation.ExcelProperty;
import com.cn.common.IDGenerate;
import com.cn.empty.EmptyCheck;
import com.cn.validate.JsonSerializerPhone;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * description: UserVO <br>
 * date: 21.12.16 10:15 <br>
 * author: cn_yaojin <br>
 * version: 1.0 <br>
 */

@Setter
@Getter
@Accessors(chain = true)
@ApiModel(value = "会员用户导出")
public class MemberExcelVO extends IDGenerate {

    @ExcelProperty(value = "昵称")
    @EmptyCheck(message = "姓名不能为空", max = 30)
    @ApiModelProperty(value = "姓名")
    private String nickName;

    @JsonSerialize(using = JsonSerializerPhone.class)
    @ExcelProperty(value = "手机号")
    @ApiModelProperty(value = "手机号")
    private String phone;

    @ExcelProperty(value = "用户类型")
    @ApiModelProperty(value = "用户类型")
    private String userItemType;


    @ExcelProperty(value = "职位")
    @ApiModelProperty(value = "职位")
    private String workPost;

    @ExcelProperty(value = "用户状态")
    @ApiModelProperty(value = "0-正常 1-停用")
    private String userStatus;

    @ExcelProperty(value = "创建时间")
    @ApiModelProperty(value = "创建时间")
    private String addTime;

    @ExcelProperty(value = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

}
